package com.uppalz.fundmanager.dao;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

/**
 *
 * @author Zafar
 */
public class EMF {

    private static final EntityManagerFactory emfInstance = Persistence.createEntityManagerFactory("com.uppalz_FundManager_PU");

    private EMF() {
    }

    public static EntityManagerFactory get() {
        return emfInstance;
    }

    public static EntityManager create() {
        return emfInstance.createEntityManager();
    }
}
